package hfdp.chp06.chp0605;

/**
 * Created by cheyiwen on 16/8/30.
 */
public class Light {

    private String location;

    public Light(String location) {
        this.location = location;
    }

    public void on(){
        System.out.println(location + " light is on...");
    }

    public void off(){
        System.out.println(location + " light is off...");
    }
}
